package com.cy.system.service;

import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.http.HttpRequest;

import com.cy.system.entity.Account;
import com.cy.system.entity.Menu;
import com.cy.system.entity.User;
import com.github.pagehelper.Page;

public interface AccountService {

	public int addAccount(Account acconut,HttpSession session);
	
	public int deleteAccount(int id);
	
	public HashMap<String,Object> updateAccount(String oldPassword,String newPassword,int accountid);
	
	public String getPasswordById(int accountId);
	
	public Account getAccountById(int acconutId);
	
	public List<Account> getAllAccountList(Page page);
	
	public Boolean vaildatePassword(String targetPassword,String sourcePassword);
	
	public String EncryptPassword(String password);
	
	public User toLogin(Account account,HttpSession session);
	
	public List<Menu> initMenu(User user);
	/*public List<Menu> initMenu(int userId);*/
	
	public Account getAccountByLoginName(String loginName);
	
}
